//package ipad.asia.service.impl;
//
//import ipad.asia.dao.OrderDao;
//import ipad.asia.entity.Order;
//import ipad.asia.service.OrderService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
//import java.time.LocalDateTime;
//import java.util.List;
//@Service
//public class OrderServiceImpl implements OrderService {
//    @Autowired
//    private OrderDao orderDao;
//    @Override
//    public List<Order> findAll() {
//        return orderDao.findAll();
//    }
////
//    @Override
//    public void orderAdd(int consumerId, Float price,
//                         int productId, int number,
//                         String describe, Integer shopId, LocalDateTime date) {
//        Order order=new Order();
//        order.setConsumerId(consumerId).setPrice(price).setProductId(productId).setNumber(number)
//             .setShopId(shopId).setPayDate(date);
//        orderDao.save(order);
//    }
//
//    @Override
//    public List<Order> findByConsumerId(int consumerId) {
//        return orderDao.findByConsumerId(consumerId);
//    }
////
////    @Override
////    public List<Order> findByShopId(int shopId) {
////        return orderDao.findByShopId(shopId);
////    }
////
////    @Override
////    public List<Order> findByConsumerCancel(int consumerId) {
////        return orderDao.findByConsumerCancel(consumerId);
////    }
////
////    @Override
////    public List<Order> findByIsCancelAndShopId(int cancel, int shopId) {
////        return orderDao.findByIsCancelAndShopId(cancel, shopId);
////    }
////
////    @Override
////    public List<Order> findByProductIdAndConsumerId(int productId, int consumerId) {
////        return orderDao.findByProductIdAndConsumerId(productId, consumerId);
////    }
////
////    @Override
////    public List<Order> findByProductIdAndShopId(int productId, int shopId) {
////        return orderDao.findByProductIdAndShopId(productId, shopId);
////    }
////
//////    @Override
//////    public List<Order> findByFinishAndAndConsumerId(int finish, int consumerId) {
//////        return orderDao.findByFinishAndAndConsumerId(finish, consumerId);
//////    }
//////
//////    @Override
//////    public List<Order> findByFinishAndShopId(int finish, int shopId) {
//////        return orderDao.findByFinishAndShopId(finish, shopId);
//////    }
//////
//////    @Override
//////    public List<Order> findByDateBetweenAndConsumerId(LocalDateTime timeDown, LocalDateTime timeUp, int consumerId) {
//////        return orderDao.findByDateBetweenAndConsumerId(timeDown, timeUp, consumerId);
//////    }
////
//////    @Override
//////    public List<Order> findByDateBetweenAndShopId(LocalDateTime timeDown, LocalDateTime timeUp, int shopId) {
//////        return orderDao.findByDateBetweenAndShopId(timeDown, timeUp, shopId);
//////    }
////
////    @Override
////    public List<Order> findByProductId(int productId) {
////        return orderDao.findByProductId(productId);
////    }
////
////
//////    @Override
//////    public List<Order> findByFinish(int finish) {
//////        return orderDao.findByFinish(finish);
//////    }
////
////    @Override
////    public void cancelByConsumerId(int id, int consumerId) {
////        orderDao.save(new Order().setId(id).setConsumerId(consumerId).setConsumerCancel(1));
////    }
////
////    @Override
////    public void cancelByShopId(int id, int shopId) {
////        orderDao.save(new Order().setId(id).setShopId(shopId).setShopCancel(1));
////    }
////
////    @Override
////    public void deleteByConsumerId(int id, int consumerId) {
////        orderDao.deleteByConsumerId(id, consumerId);
////    }
////
////    @Override
////    public void deleteByShopId(int id, int shopId) {
////        orderDao.deleteByShopId(id, shopId);
////    }
////
//}
